package com.deng.maintenance.model
{
	
	import com.deng.common.vo.DispenseOrganizationVo;
	import com.deng.common.vo.EmployeeVo;
	import com.deng.common.vo.FunctionVo;
	import com.deng.common.vo.OperateDepartmentVo;
	import com.deng.common.vo.OrganizationVo;
	import com.deng.fankui.vo.FanKuiOrganizationVo;
	import com.deng.maintenance.kpi.vo.KPI_DicVO;
	import com.deng.maintenance.kpi.vo.KpiDictItemVo;
	import com.deng.maintenance.kpi.vo.KpiDictItemVsOrganizationVo;
	import com.deng.maintenance.kpi.vo.OrganizationIndicateVo;
	
	import mx.collections.ArrayCollection;
	import mx.controls.Button;
	import mx.resources.ResourceManager;
	
	
	[Bindable]
	public class MaintenanceModelLocator
	{
		private static var modelLocator:MaintenanceModelLocator;
		public function MaintenanceModelLocator()
		{
		}
		public static function getInstance():MaintenanceModelLocator{
		     if(modelLocator==null){
		       modelLocator=new MaintenanceModelLocator();
		     }
		     return modelLocator;
		}
		
		public var itemWeightArr:ArrayCollection;//单价项目权重表List
		public var workbenchPage:String;
		
		
		public var itemTable:ArrayCollection;//单价项目的数据库表
		
		public var organizationUnitPriceItemTable:ArrayCollection;//单一组织的单价项目表
		
		public var navigationOrganization:OrganizationVo;//当前进入导航的工作绩效科室
		public var navigationOperate:OperateDepartmentVo;//当前进去导航的经营绩效科室
		public var organizationVsIndicate:OrganizationIndicateVo;
		public var organizationIndicateArr:ArrayCollection;//返回的organizationVsIndicate的List
		
		public var lastSearchDispenseInfo:String;
//		====================================公式维护
		public var bonusParameter:String;
		public var bonusParameter2:String;
		public var button:Button;
		public var bonusTemplate:ArrayCollection;
//		public var bonusPerformanceType:int; //对应GlobalProperties的_UNIT_PRICE_TYPE等等
		
		
		public var treeWidth:int = 245;
		
		public var stat_depts:ArrayCollection;
		
//		public var dutys:ArrayCollection;
		public var dutyTypeArr:ArrayCollection;
		public var kpi_dics:ArrayCollection;
		public var postArr:ArrayCollection;
		public var classTypeArr:ArrayCollection;
		public var feeTypeArr:ArrayCollection;
		
		
		
		public var exp:String="";
		
		
		public var kpiVO:KPI_DicVO;
		
		public var kpivalues:ArrayCollection;
		
		public var vhCBOrgArr:ArrayCollection;//望海成本科室
		public var vhKpiOrgArr:ArrayCollection;//望海KPI科室
		public var vhSelOrg:OrganizationVo;
		
		
		public var hisOrganization:ArrayCollection;
		public var fullNameOrganization:ArrayCollection;
		public var dispenseOrganization:ArrayCollection;
		public var dispenseEmployee:ArrayCollection;
		//-------------------vote
		public var voteDictArr:ArrayCollection;
		public var voteDictArr2:ArrayCollection;
		public var voteDictOperateArr:ArrayCollection;
		public var voteDictAdminArr:ArrayCollection;
		public var jiangchengDictArr:ArrayCollection;
		
		public var periodArr:Array = [ResourceManager.getInstance().getString("lang", "month"),
				ResourceManager.getInstance().getString("lang", "season"),
				ResourceManager.getInstance().getString("lang", "half_year"),
				ResourceManager.getInstance().getString("lang", "year")];
		public var avaliableYear:Array = [2010,2011,2012,2013,2014,2015,2016];
		public var availableSeason:Array = [ResourceManager.getInstance().getString("lang", "first_season"),
				ResourceManager.getInstance().getString("lang", "second_season"),
				ResourceManager.getInstance().getString("lang", "third_season"),
				ResourceManager.getInstance().getString("lang", "forth_season")];
		public var availableMonth:Array = [1,2,3,4,5,6,7,8,9,10,11,12];
		public var availableHalfYear:Array = [ResourceManager.getInstance().getString("lang", "up_half_year"),
				ResourceManager.getInstance().getString("lang", "down_half_year")];
		public var voteVsOrganizationArr:ArrayCollection;
		
		public var voteValueArr:ArrayCollection;
		public var voteValueArr2:ArrayCollection;
		public var voteValueOperateArr:ArrayCollection;
		public var voteValueAdminArr:ArrayCollection;
		//-------------------formulaTest
		public var formulaTestDate:String;
		
//		-----------------------------------------------FN维护
		public var fnArr:ArrayCollection;
		public var fnVO:FunctionVo;
		public var dataTableArr:ArrayCollection;
		public var dataTableColumnArr:ArrayCollection;
		
//		-----------------------------------------------配置单价公式		
		public var topOrganizationArr:ArrayCollection;
		public var ruleArr:ArrayCollection = new ArrayCollection();
		public var ruleGroupArr:ArrayCollection;
		
//		-----------------------------------------------员工维护
		public var employeeInfoArr:ArrayCollection;		
		public var selEmployeeVo:EmployeeVo;	
		public var selDispenseOrganizationVo:DispenseOrganizationVo;
		public var selOperateVo:OperateDepartmentVo;
		public var empZhuGuanKeShi:String;
		public var empFenGuanKeShi:String;
		public var employeeClassArr:ArrayCollection;
		
		
//		=========================================ETL
		public var etlDailyArr:ArrayCollection;
		public var etlWorkloadValidArr:ArrayCollection;
		
		
//		=========================================新的KPI部分
		public var kpiDictItemVo:KpiDictItemVo;
		public var kpiDictItemWithDetailList:ArrayCollection;
		public var kpiDictItemList:ArrayCollection;
		public var kpiDictItemListByGuikou:ArrayCollection;
		public var kaoheListByGuikou:ArrayCollection;
		public var kaoheAllList:ArrayCollection;
		
		public var kpiDictItemVsOrganizationVo:KpiDictItemVsOrganizationVo;
		public var kpiDictItemVsOrganizationList:ArrayCollection;
		public var kpiPointForOneItemArr:ArrayCollection;//同一个项目，不同科室的List
		public var kpiPointForOneKaoheArr:ArrayCollection;//同一个科室，不同项目的List	
		public var kpiPointValidForOneItemArr:ArrayCollection;//同一个项目，不同科室的List
		public var kpiPointValidForOneKaoheArr:ArrayCollection;//同一个科室，不同项目的List	
		
		public var kezhurenReturn:ArrayCollection;
		public var keshiReturn:ArrayCollection;
		public var tmpKezhurenFankui:FanKuiOrganizationVo;
		public var tmpKeshiFankui:FanKuiOrganizationVo;
		
		public var kpiWithoutDetailArr:ArrayCollection;//KpiDictItemVsOrganizationVo
		
	}
}



